package edu.xlh.travel.service;

import com.alibaba.fastjson.JSONArray;
import edu.xlh.travel.common.Result;
import edu.xlh.travel.pojo.Carousel;
import edu.xlh.travel.pojo.querypojo.QueryCarousel;

import javax.servlet.http.HttpSession;
import java.util.HashMap;

public interface CarouselService {
    Result findAllCarousel(int page, int limit, HttpSession session);

    Result edit(String id, Carousel carousel, HttpSession session);

    Result batchDelete(JSONArray jsonArray, HttpSession session);

    Result deleteById(String id, HashMap hashMap, HttpSession session);

    Result QueryCarouselByCondition(Integer page, Integer limit, QueryCarousel queryCarousel, HttpSession session);

    Result add(Carousel carousel, HttpSession session);
}
